package com.futu.ai.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * AI配置信息
 */
@Component
public class AiConfig {

    /**
     * 智普AI API密钥
     */
    public static String API_KEY;

    /**
     * 智普AI模型名称
     */
    public static String MODEL_NAME;
    
    /**
     * 智普视觉模型名称 (GLM-4V-FLASH)
     */
    public static String VISION_MODEL_NAME;

    @Value("${zhipu.ai.api-key}")
    public void setApiKey(String apiKey) {
        API_KEY = apiKey;
    }

    @Value("${zhipu.ai.model-name}")
    public void setModelName(String modelName) {
        MODEL_NAME = modelName;
    }
    
    @Value("${zhipu.ai.vision-model-name:glm-4v-flash}")
    public void setVisionModelName(String visionModelName) {
        VISION_MODEL_NAME = visionModelName;
    }
} 